package guowei.gulidiscount;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@EnableTransactionManagement
@EnableDiscoveryClient        //开启服务注册与发现功能
@SpringBootApplication
@MapperScan("guowei.gulidiscount.discount.dao")
@EnableFeignClients			//调用feign就要开启feign客户端远程调用功能
public class GuliDiscountApplication {

	public static void main(String[] args) {
		SpringApplication.run(GuliDiscountApplication.class, args);
	}

}